.entity-highlight {
  background-color: #fecaca;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  margin: 0 0.125rem;
  display: inline-block;
  position: relative;
  white-space: pre-wrap;
}

.training-text {
  min-height: 3rem;
  cursor: text;
  white-space: pre-wrap;
}

[contenteditable] {
  outline: none;
  white-space: pre-wrap;
}

[contenteditable]:focus {
  border: 1px solid #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.typing-indicator {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  width: fit-content;
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #9ca3af;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25rem);
  }
} 